﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Vertex3d
{

    struct Vertex3d
    {
        private double _x;
        private double _y;
        private double _z;

        public double X
        {
            get { return _x; }
            set { _x = value; }
        }
        public double Y
        {
            get { return _y; }
            set { _y = value; }
        }

        public double Z
        {
            get { return _z; }
            set { _z = value; }
        }
        public Vertex3d(double x, double y, double z)
        {
            this._x = x;
            this._y = y;
            this._z = z;
        }

        public override string ToString()
        {
            return string.Format("({0}, {1}, {2})", X, Y, Z);
        }

    }


    class Program
    {
        static void Main(string[] args)
        {
            Vertex3d v = new Vertex3d(1.0, 2.0, 3.0);
            Console.WriteLine(v.ToString());

            Console.ReadKey();
        }
    }
}
